package com.example.modules.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class MyPostVO {
    private Integer id;
    private Integer userId;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("图片地址")
    private String pic;
    @ApiModelProperty("是否置顶")
    private Integer isTop;
    @ApiModelProperty("发帖时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date publishTime;
    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    @ApiModelProperty("贴子封面")
    private String coverPic;
    @ApiModelProperty("审核状态（0：待审核 1：审核通过 2：审核不通过）")
    private Integer auditStatus;
    @ApiModelProperty("分类")
    private String category;
    @ApiModelProperty("该贴评论数")
    private Integer commentNum;
}
